package com.ktgj.train.domain.InterfaceEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 订单提交回调请求实体
 */
public class TrOrderSubmissionsRequest implements Serializable {
    public TrOrderSubmissionsRequest() {
        passengers = new ArrayList<>();
    }

    /**
     * api用户请求时传入的特征值
     */
    public String reqtoken;

    /**
     * 出发站名称
     */
    public String from_station_name;

    /**
     * 取票号（电子单号）
     */
    public String ordernumber;

    /**
     * 历时
     */
    public String runtime;

    /**
     * 车次
     */
    public String checi;

    /**
     * 简码
     */
    public Integer code;

    /**
     * 描述信息
     */
    public String msg;

    /**
     * 出发站简码
     */
    public String from_station_code;

    /**
     * 订单金额
     */
    public String orderamount;

    /**
     * 到达站名称
     */
    public String to_station_name;

    /**
     * 到达时间
     */
    public String arrive_time;

    /**
     * 到达站简码
     */
    public String to_station_code;

    /**
     * 是否占座成功
     */
    public boolean ordersuccess;

    /**
     * 仅refund_online=1，表示该订单无法在线退票或改签（12306官网提示)
     */
    public String refund_online;

    /**
     * 订单号
     */
    public String transactionid;

    /**
     * 发车时间
     */
    public String start_time;

    /**
     * 商户订单号
     */
    public String orderid;

    /**
     * 操作状态
     */
    public boolean success;

    /**
     * 乘车日期
     */
    public String train_date;

    /**
     * 支付链接
     */
    public String payLink;

    /**
     * 支付结果监测url
     */
    public String payCheckUrl;

    /**
     * 是否托管转代购下单
     */
    public boolean use_supplier_acc;

    /**
     * 是否免核验下单  true:是  false：否
     */
    public boolean isUncheckPlaceOrder;

    /**
     * 提示信息
     */
    public String promptInfo;

    /**
     * 乘客信息
     */
    public List<Passengers> passengers;

    @Override
    public String toString() {
        return "TrOrderSubmissionsRequest{" +
                "reqtoken='" + reqtoken + '\'' +
                ", from_station_name='" + from_station_name + '\'' +
                ", ordernumber='" + ordernumber + '\'' +
                ", runtime='" + runtime + '\'' +
                ", checi='" + checi + '\'' +
                ", code=" + code +
                ", msg='" + msg + '\'' +
                ", from_station_code='" + from_station_code + '\'' +
                ", orderamount='" + orderamount + '\'' +
                ", to_station_name='" + to_station_name + '\'' +
                ", arrive_time='" + arrive_time + '\'' +
                ", to_station_code='" + to_station_code + '\'' +
                ", ordersuccess=" + ordersuccess +
                ", refund_online='" + refund_online + '\'' +
                ", transactionid='" + transactionid + '\'' +
                ", start_time='" + start_time + '\'' +
                ", orderid='" + orderid + '\'' +
                ", success=" + success +
                ", train_date='" + train_date + '\'' +
                ", payLink='" + payLink + '\'' +
                ", payCheckUrl='" + payCheckUrl + '\'' +
                ", use_supplier_acc=" + use_supplier_acc +
                ", isUncheckPlaceOrder=" + isUncheckPlaceOrder +
                ", promptInfo='" + promptInfo + '\'' +
                ", passengers=" + passengers +
                '}';
    }
}
